package com.bs.medicine.utils;


import com.bs.entity.User;
import com.opensymphony.xwork2.ActionInvocation;

public class CheckUserUtils {
	public static boolean  isAllowed(ActionInvocation au){
		User user =(User) au.getInvocationContext().getSession().get("user");
		if(user.getUserPrivilege().getPrivilegeNo().intValue()==1){
			return true;
			
		}else {
			return false;
		}
		
	}

}
